from flask_socketio import SocketIO


class SessionInfo:
    # use GraphNodeManager.createSessionInfo() to create a SessionInfo
    def __init__(self, id:str, ws:SocketIO, sid:str, route:str, full_url:str):
        self.id = id
        self.flow_prev_nodes_executed_number = {} # {node_id: {prev_node_id: executed_number}}  当某一个node_id 的所有prev_node_id的值均相同，则执行node_id
        self.ws = ws
        self.sid = sid
        self.route = route
        self.full_url = full_url
    